package org.autumn.springmybatis;

import org.autumn.mybatis.UserMapper;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpirngMybatis {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-mybatis.xml");

        UserMapper userMapper = context.getBean("userMapper", UserMapper.class);

        System.out.println(userMapper.selectUser(1));
    }
}
